import { createRouter,createWebHashHistory } from "vue-router";


//引入组件
import Home from "../components/HelloWorld1";
// eslint-disable-next-line no-unused-vars
import Hello from "../components/HelloWorld";
import TestApp from "../components/app";
// import About from "../components/About.vue";
// import Hello from "../components/HelloWorld.vue"

//配置路由映射
// eslint-disable-next-line no-unused-vars
const routes = [
    {
        //对应的路径
        path: '/home',
        //对应的组件
        component:Home
    },
    {
        path: '/hello',
        component:Hello
    }
    ,
    {
        path: '/app',
        component:TestApp
    }
    // {
    //     path: '/hello',
    //     component:Hello
    // }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router;